package com.mexico.inloancash.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.mexico.inloancash.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 关于
 */
public class India_Regarding_Activity extends BaseActivity {

    
    @BindView(R.id.logon_back)
    ImageView mGonBack;
    
    @BindView(R.id.title)
    TextView title;
    
    @BindView(R.id.about_hide)
    RelativeLayout mIndiaReHide;
    
    @BindView(R.id.about_service)
    RelativeLayout mIndiaReService;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.india_activity_view_about);
        ButterKnife.bind(this);
        title.setText("Tentang Kami");
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            finish();
        }
        return super.onKeyDown(keyCode, event);
    }

    @OnClick({R.id.logon_back, R.id.about_hide, R.id.about_service})
    public void onViewClicked(View view) {
        Intent server = new Intent(this, IndiaWeb_ViewActivity.class);
        switch (view.getId()) {
            case R.id.logon_back:
                finish();
                break;
            case R.id.about_hide:
                startActivity(server);
                break;
            case R.id.about_service:
                server.putExtra("type","type");
                startActivity(server);
                break;
        }
    }
}
